package com.yupi.project.service.impl.inner;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.yupi.model.entity.InterfaceInfo;
import com.yupi.project.mapper.InterfaceInfoMapper;
import com.yupi.service.InnerInterfaceInfoService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

/**
 * @author vvv
 * @date 2023-10-08 15 13
 * discription
 */
@DubboService
public class InnerInterfaceInfoServiceImpl implements InnerInterfaceInfoService {

    @Resource
    private InterfaceInfoMapper interfaceInfoMapper;


    @Override
    public InterfaceInfo getInterfaceInfoById(long interfaceInfoId) {
        LambdaQueryWrapper<InterfaceInfo> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(InterfaceInfo::getId, interfaceInfoId);
        return interfaceInfoMapper.selectOne(queryWrapper);
    }

}
